<template>
  <div class="about-container">
    <!-- 个人信息卡片 -->
    <div class="info-card">
      <div class="avatar-wrapper">
        <van-image
          round
          width="80px"
          height="80px"
          :src="avatar"
          alt="用户头像"
        />
      </div>
      <h2 class="name">哈密瓜哈哈</h2>
      <p class="title">前端开发工程师</p>
    </div>

    <!-- 项目介绍 -->
    <div class="project-info">
      <h3>项目介绍</h3>
      <p>这是一个基于 Vue 3 开发的心情记录应用，帮助用户记录和分析每日心情变化。</p>
      
      <h4>主要功能：</h4>
      <div class="info-list">
        <div class="info-item">
          <van-icon name="user-o" />
          <span>多用户系统，支持邮箱注册登录</span>
        </div>
        <div class="info-item">
          <van-icon name="records" />
          <span>每周心情记录与文字想法发布</span>
        </div>
        <div class="info-item">
          <van-icon name="chart-trending-o" />
          <span>基于 ECharts 的数据可视化分析</span>
        </div>
        <div class="info-item">
          <van-icon name="phone-o" />
          <span>响应式设计，支持移动端访问</span>
        </div>
      </div>

      <h4>技术栈：</h4>
      <div class="tech-list">
        <div class="tech-item">Vue 3 + Composition API</div>
        <div class="tech-item">Vant UI + ECharts</div>
        <div class="tech-item">Node.js + Express</div>
        <div class="tech-item">MySQL 数据库</div>
      </div>
    </div>

    <!-- 联系方式 -->
    <div class="contact-info">
      <h3>联系方式</h3>
      <van-cell-group inset>
        <van-cell title="GitHub" icon="github-o" value="https://gitee.com/Victorlemon" />
        <van-cell title="Email" icon="envelop-o" value="1832388502@qq.com" />

      </van-cell-group>
    </div>

    <!-- 版权信息 -->
    <div class="footer">
      <p>© 2024 Mood Record. All rights reserved.</p>
    </div>
  </div>
</template>

<script setup>
import { ref } from 'vue'
import avatar from '@/assets/mmexport1740916330518.jpg'
</script>

<style scoped lang="less">
.about-container {
  padding: 20px;
  background-color: #f7f8fa;
  min-height: 100vh;

  .info-card {
    text-align: center;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);

    .avatar-wrapper {
      margin-bottom: 15px;
      .van-image {
        border: 2px solid #fff;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
      }
    }

    .name {
      margin: 10px 0 5px;
      font-size: 20px;
      color: #323233;
    }

    .title {
      color: #969799;
      font-size: 14px;
    }
  }

  .project-info {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);

    h3, h4 {
      color: #323233;
      margin-bottom: 15px;
    }

    h3 {
      font-size: 18px;
    }

    h4 {
      font-size: 16px;
      margin-top: 20px;
    }

    p {
      color: #646566;
      font-size: 14px;
      line-height: 1.6;
    }

    .info-list {
      .info-item {
        display: flex;
        align-items: center;
        margin: 10px 0;
        font-size: 14px;
        color: #646566;

        .van-icon {
          margin-right: 10px;
          color: #323233;
        }
      }
    }

    .tech-list {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;

      .tech-item {
        background: #f2f3f5;
        padding: 6px 12px;
        border-radius: 4px;
        font-size: 13px;
        color: #323233;
      }
    }
  }

  .contact-info {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);

    h3 {
      margin: 0 0 15px;
      color: #323233;
      font-size: 18px;
    }
  }

  .footer {
    text-align: center;
    padding: 20px 0;
    color: #969799;
    font-size: 12px;
  }
}
</style>